﻿using System;
using Unis.Framework.Core.Exceptions;

namespace Unis.Framework.ORM.Exceptions
{
    public class EntityIsPersistentException : APPException
    {
        // Methods
        public EntityIsPersistentException()
            : base("This entity is already persistent!Perform PersistentNew operation failed!")
        {
        }

        public EntityIsPersistentException(string msg)
            : base(msg)
        {
        }

        public EntityIsPersistentException(string msg, Exception exception)
            : base(msg, APPMessageType.SysErrInfo, exception)
        {
        }
    }
}
